<header>
    <div class="top_bar">
        <div class="container">
            <div class="top_header_content">
                <div class="menu_logo">
                    <!-- <a href="#" title="" class="menu">
                        <i class="icon-menu"></i>
                    </a> -->
                    <!-- <a href="__ROOT__/" title="" class="logo">
                        <img src="/themes/simpleboot3/Public/assets/images/logo.png" alt="" class="img-fluid">
                    </a> -->
                </div>
                <div class="search_form">
                    <form action="{:cmf_url('portal/Search/index')}" method="GET">
                        <input type="text" name="keyword" value="{$keyword|default=''}" placeholder="搜你想搜">
                        <button type="submit">
                            <i class="icon-search"></i>
                        </button>
                    </form>
                </div>
                <php>$newUser=cmf_get_current_user();</php>
                <ul class="controls-lv <empty name='$newUser'>mt-0</empty> ">
                    <empty name="$newUser">
                        <li>
                            <a href="{:cmf_url('user/Login/index')}" title="">登录</a>
                        </li>
                        <li>
                            <a href="{:cmf_url('user/Register/index')}" title="">注册</a>
                        </li>
                        <else />
                        <li>
                            <a href="#" title=""><i class="icon-message"></i></a>
                        </li>
                        <li>
                            <a href="#" title=""><i class="icon-notification"></i></a>
                        </li>
                        <div class="user-ac-img">
                            <img src="{:cmf_get_image_url($newUser.avatar)}"
                                style="width: 61px !important;height: 61px !important" alt="">
                            <li class="user-log">
                                <div class="account-menu">
                                    <h4>{$newUser.user_nickname} </h4>
                                    <div class="sd_menu border-bottom-0">
                                        <ul class="mm_menu">
                                            <li>
                                                <span class="ml-1">
                                                    <i class="fa fa-pencil-square-o" aria-hidden="true"></i>
                                                </span>
                                                <a href="{:cmf_url('portal/Article/add')}" title="">发布</a>
                                            </li>
                                            <li>
                                                <span>
                                                    <i class="icon-user"></i>
                                                </span>
                                                <a href="{:cmf_url('user/Profile/center')}" title="">我的信息</a>
                                            </li>
                                            <!-- <li>
                                                <span>
                                                    <i class="icon-paid_sub"></i>
                                                </span>
                                                <a href="#" title="">Paid subscriptions</a>
                                            </li> -->
                                            <li>
                                                <span>
                                                    <i class="icon-settings"></i>
                                                </span>
                                                <a href="#" title="">设置</a>
                                            </li>
                                            <li>
                                                <span>
                                                    <i class="icon-logout"></i>
                                                </span>
                                                <a href="{:cmf_url('user/Index/logout')}">退出登录</a>
                                            </li>
                                        </ul>
                                    </div>
                                    <!--sd_menu end-->
                                    <!-- <div class="sd_menu scnd">
                                        <ul class="mm_menu">
                                            <li>
                                                <span>
                                                    <i class="icon-light"></i>
                                                </span>
                                                <a href="#" title="">Dark Theme</a>
                                                <label class="switch">
                                                    <input type="checkbox">
                                                    <b class="slider round"></b>
                                                </label>
                                            </li>
                                            <li>
                                                <span>
                                                    <i class="icon-language"></i>
                                                </span>
                                                <a href="#" title="">Language</a>
                                            </li>
                                            <li>
                                                <span>
                                                    <i class="icon-feedback"></i>
                                                </span>
                                                <a href="#" title="">Send feedback</a>
                                            </li>
                                            <li>
                                                <span>
                                                    <i class="icon-location"></i>
                                                </span>
                                                <a href="#" title="">India</a>
                                                <i class="icon-arrow_below"></i>
                                            </li>
                                        </ul>
                                    </div> -->
                                    <!--sd_menu end-->
                                    <!-- <div class="restricted-mode">
                                        <h4>Restricted Mode</h4>
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider round"></span>
                                        </label>
                                        <div class="clearfix"></div>
                                    </div> -->
                                    <!--restricted-more end-->
                                </div>
                            </li>
                        </div>
                        <!-- <li>
                            <a href="Upload_Video.html" title="" class="btn-default">Upload</a>
                        </li> -->
                </ul>
                </empty>

                </ul>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
    <div class="btm_bar" id="btm_bar">
        <div class="container">
            <div class="btm_bar_content">
                <nav>
                    <ul id="main-menu">
                        <navigation nav-id="1" root="">
                            <navigationMenu root="li">
                                <a href="{$menu.href|default=''}" target="{$menu.target|default=''}"
                                    class="<notempty name='$category'><if condition='$menu.id eq $category'>text-blue</if></notempty>">{$menu.name|default=''}</a>
                            </navigationMenu>
                        </navigation>
                        <li><a href="#" title="">Pages</a>
                    </ul>
                </nav>
                <ul class="shr_links">
                    <li>
                        <h3>Go to : </h3>
                    </li>
                    <li>
                        <button data-toggle="tooltip" data-placement="top" title="Like">
                            <i class="icon-like"></i>
                        </button>
                    </li>
                    <li>
                        <button data-toggle="tooltip" data-placement="top" title="Watch later">
                            <i class="icon-watch_later"></i>
                        </button>
                    </li>
                    <li>
                        <button data-toggle="tooltip" data-placement="top" title="Playlist">
                            <i class="icon-playlist"></i>
                        </button>
                    </li>
                    <li>
                        <button data-toggle="tooltip" data-placement="top" title="Purchased">
                            <i class="icon-purchased"></i>
                        </button>
                    </li>
                    <li>
                        <button data-toggle="tooltip" data-placement="top" title="History">
                            <i class="icon-history"></i>
                        </button>
                    </li>
                </ul>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
</header>